import http from '../../../../util/http.js';

//读取微信支付配置参数
export function FindWeixinPayConfig() {
    let url = `/weixin/pay/config/read`;
    return new Promise((resolve, reject) => {
        http.get(url).then(response => {
            resolve(response)
        });
    });
}

//保存微信支付配置参数
export function SaveWeixinPayConfig(data) {
    let url = `/weixin/pay/config/save`;
    return new Promise((resolve, reject) => {
        http.post(url,data).then(response => {
            resolve(response)
        });
    });
}
